using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Webcar.Sec
{
    public partial class SecReport_2 : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public void SearchClick(object sender, EventArgs e)
        {
            string s_kind = "";
            if (this.rbDuty.Checked)
                s_kind = "duty";
            if (this.rbType.Checked)
                s_kind = "type";
            if (this.rbKind.Checked)
                s_kind = "kind";

            this.SecReporyByDuty1.InitView(this.SelectByDateForSec1.GetDeptCode(),
                s_kind,
                this.SelectByDateForSec1.GetStartDate(),
                this.SelectByDateForSec1.GetEndDate(),
                this.SelectByDateForSec1.GetTjFlag());
        }
    }
}
